package com.ruoyi.project.hcy.administrations.service.Impl;

import com.ruoyi.project.hcy.administrations.domain.Crew;
import com.ruoyi.project.hcy.administrations.mapper.CrewMapper;
import com.ruoyi.project.hcy.administrations.service.ICrewService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName CrewServiceImpl
 * @Author 金刚芭比
 * @Date 2020/9/17 10:52
 * @Version 1.0
 */
@Service
public class CrewServiceImpl implements ICrewService {

    @Autowired
    private CrewMapper crewMapper;

    @Override
    public List<Crew> selectCrewAll(Crew crew) {
        return crewMapper.selectCrewAll(crew);
    }

    @Override
    public Crew selectCrewById(Long crewId) {
        return crewMapper.selectCrewById(crewId);
    }

    @Override
    public int updateCrewById(Crew crew) {
        return crewMapper.updateCrewById(crew);
    }

    @Override
    public int updateCrewStatus(Crew crew) {
        return crewMapper.updateCrewStatus(crew);
    }

    @Override
    public int insertCrew(Crew crew) {
        return crewMapper.insertCrew(crew);
    }

    @Override
    public int updateCrewJob(Crew crew) {
        return crewMapper.updateCrewJob(crew);
    }
}
